package orm.utils;

import io.rong.messages.BaseMessage;
import io.rong.messages.TxtMessage;
import io.rong.util.GsonUtil;

/**
 * Created by ashin on 2017/12/13.
 */
public class VideoMessage extends BaseMessage {
    private String contentUrl = "";
    private String title = "";
    private transient static final String TYPE = "VideoMessage";

    public VideoMessage(String contentUrl, String title) {
        this.contentUrl = contentUrl;
        this.title = title;
    }

    public String getContentUrl() {
        return contentUrl;
    }

    public void setContentUrl(String contentUrl) {
        this.contentUrl = contentUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String getType() {
        return TYPE;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, VideoMessage.class);
    }
}
